import 'package:json_annotation/json_annotation.dart';

part 'p_entity.g.dart';

@JsonSerializable()
class User {
	final int id;
	final String name;

	User(this.id, this.name);

	factory User.fromJson(Map<String, dynamic> json) => _$UserFromJson(json);
	Map<String, dynamic> toJson() => _$UserToJson(this);
}